home *** CD-ROM | disk | FTP | other *** search
- SERVICE: COMMAND KEY: ?
-
- ' query user for number of rings before answer (must be between 1 and 9)
-
- Debug% = FALSE% ' so Val% works with values greater than MaxInt
-
- again:
-
- IF (Val%(@RingsBeforeAnswer) > 0) AND (Val%(@RingsBeforeAnswer) < 10) THEN ∂
-
- DBoxResp = @RingsBeforeAnswer ∂
-
- ELSE @RingsBeforeAnswer = "1": DBoxResp = "1" ' default is 1
-
- DBoxSay = "^M^M How many rings before^M answering? (1-9)"
-
- DBOX 5
-
- IF (DBoxResult% = CANCEL%) OR (DBoxResp = "") THEN END ELSE ∂
-
- if (VAL%(DBoxResp) > 0) AND (VAL%(DBoxResp) < 10) then ∂
-
- @RingsBeforeAnswer = DBoxResp: END ∂
-
- else goto again
-
- Interrupt:
-
- DBOX 0
-
- LEAVE
-
-